package controllers

import (
	"gitee.com/lzqysoft/ims/models"

	"github.com/astaxie/beego"
)

type ImplementController struct {
	CommonController
}

func (c *ImplementController) URLMapping() {
	c.Mapping("GetAll", c.GetAll)

}

// GetAll
// @Title GetAll
// @Description create Cust
// @Success 201 {int} []models.GetAll
// @Failure 403 database error
// @router /GetAll [get]
func (c *ImplementController) GetAll() {
	imp, err := models.GetImplements()
	if err != nil {
		beego.Debug(err)
		c.RetError(ErrDatabase)
	}
	c.RetSuccess(imp)

}